<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:fypunchcard:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:fypunchcard:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:fypunchcard:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.userId" placeholder="用户id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">上班打卡时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.sDakatime" placeholder="上班打卡时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">打卡时间字符串</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.sDakatimestr" placeholder="打卡时间字符串"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否在范围内 1是 0 否</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.sIsScope" placeholder="是否在范围内 1是 0 否"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">0迟到 1没有迟到</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.sIsChidao" placeholder="0迟到 1没有迟到"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">上班迟到多久</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.sChidaoTime" placeholder="上班迟到多久"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">下班打卡时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.xDakatime" placeholder="下班打卡时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">下班打卡时间字符串</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.xDakatimestr" placeholder="下班打卡时间字符串"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">下班打卡是否在范围</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.xIsScope" placeholder="下班打卡是否在范围"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">下班是否迟到</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.xIsChidao" placeholder="下班是否迟到"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">当天日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.dateTime" placeholder="当天日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">当天日期字符串</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.dateTimestr" placeholder="当天日期字符串"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">下班提前超时多久</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.xChidaoTime" placeholder="下班提前超时多久"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">规定的上班打卡时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.sruleTime" placeholder="规定的上班打卡时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">规定的下班打卡时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.xruleTime" placeholder="规定的下班打卡时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">总工时</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="fyPunchcard.gongshi" placeholder="总工时"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/fypunchcard.js?_${.now?long}"></script>
</body>
</html>